package org.gd.hellojavacore.tests;

public class IntegerTest {

    public static void main(String...a) {

        Integer i1 = new Integer("10");
        Integer i2 = new Integer("10");

        System.out.println("i1 = " + i1);
        System.out.println("i2 = " + i2);

        System.out.println("i1 == i2: " + (i1 == i2));

        i1 = 10;
        i2 = new Integer("10");
        System.out.println(i1 == i2);

        i1 = 10;
        i2 = 10;
        System.out.println(i1 == i2);

//        int a1 = 2;
//        Class<?> clazz = int.class;
//        System.out.println(clazz.getCanonicalName());
//        int a2 = 2;
//        Integer b = a2;
//        System.out.println(b.getClass());

    }
}
